package iosr11.gbase;

import java.net.URL;

import com.google.api.gbase.client.GoogleBaseEntry;
import com.google.api.gbase.client.GoogleBaseFeed;
import com.google.api.gbase.client.GoogleBaseQuery;
import com.google.api.gbase.client.GoogleBaseService;

public interface BaseDAO {
	
	public StudentBase getStudentBase();
	public TeacherBase getTeacherBase();
	public MarkDAO getMarksBase();
	public boolean authtenticate(String username, String password);
	public GoogleBaseService getService();
	public boolean addRecord(GoogleBaseEntry entry);
	public String addRecordReturnId(GoogleBaseEntry entry);
	public GoogleBaseEntry getRecord(URL ref);
	public GoogleBaseFeed getQueryResult(GoogleBaseQuery query);
	public GoogleBaseFeed getQueryResult(GoogleBaseQuery query, String key, String value);
	public GoogleBaseFeed getQueryResult(GoogleBaseQuery query, String key, int value);
	public GoogleBaseEntry getRecord(String fieldName, String value);
}
